﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ListImagesILikeByMember.ascx.cs" Inherits="SocialFront.Web.usercontrols.Membership.ListImagesILikeByMember" %>
<%@ Import Namespace="SocialFront.Entities"%>

<h2>Images I Like</h2>

<asp:ListView ID="imagesList" runat="server">
    <LayoutTemplate>
        <ul><asp:PlaceHolder ID="itemPlaceholder" runat="server" /></ul>
    </LayoutTemplate>
    <ItemTemplate>
        <li>
            <a href="<%# ((SocialFront.Entities.Image)Container.DataItem).PageUrl %>"><img src="/extensions/ImageScale.ashx?ImgFile=<%# ((SocialFront.Entities.Image)Container.DataItem).Media.FilePath %>&amp;width=60&amp;height=60&amp;constrain=1" /></a>
            <br />
            <a href="<%# ((SocialFront.Entities.Image)Container.DataItem).PageUrl %>"><%# ((SocialFront.Entities.Image)Container.DataItem).Title %></a>
            <br />
            <a href="<%# ((SocialFront.Entities.Image)Container.DataItem).Member.MemberUrl %>"><%# ((SocialFront.Entities.Image)Container.DataItem).Member.LoginName %></a>
            <br />
            <%# ((SocialFront.Entities.Image)Container.DataItem).CreatedDate.ToString("dd MMM yyyy")%>
        </li>
    </ItemTemplate>
    <EmptyDataTemplate><p>I've not Liked any Images yet!</p></EmptyDataTemplate>
</asp:ListView>